<%@ page import="com.apexedu.portal.constant.Constants" %>
<%@ page import="com.apexedu.portal.entity.TFrontdeskNews" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
    request.setAttribute("basePath", basePath);
    TFrontdeskNews tfrontdesknews = (TFrontdeskNews) request.getAttribute("tfrontdesknews");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title><%=Constants.ProjectInfo.PROJECT_NAME%>
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="${basePath}/resources/css/mh.sdyz.css" rel="stylesheet">
    <script type="text/javascript" src="${basePath}/resources/ui/js/jquery-1.10.2.min.js"></script>
    <script src="${basePath}/resources/js/mh.sdyz.index.js" type="text/javascript"></script>
    <style type="text/css">
        li {
            list-style: none;
            list-style-position: inside;
            text-align: left;
        }
        ul{
            margin-top: 10px;
        }
        ul li a {
            line-height: 30px;
            *float: left;
            display: inline-block;
            width: 70%;
            white-space: nowrap;
            text-overflow: ellipsis;
            -o-text-overflow: ellipsis;
            overflow: hidden;
            font-size: 16px;
            text-decoration: none;
            color: #646464;
            text-align: left;
        }
       ul li em {
            height: 20px;
            line-height: 20px;
            float: right;
            font-size: 12px;
            color: #b4b2b2;
            display: inline-block;
            padding-right: 20px
        }
    </style>
    <script type="application/javascript">
        $(function () {
            if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.match(/6./i) == "6.") {
                $(".newsli").css("line-height", "33px");
            }
            else if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.match(/7./i) == "7.") {
                $(".newsli").css("line-height", "33px");
            }
            else if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.match(/8./i) == "8.") {
                $(".newsli").css("line-height", "33px");
            }
        });
    </script>
</head>
<body>
    <ul>
        <c:forEach items="${newslist}" var="twz">
            <li>
                <a href="#" onclick="window.open('${basePath}/s/uc/sdyz/fdnv/<%=tfrontdesknews.getWeiz()%>-${twz.wid}')" title="${twz.title}"  class="newsli" style="line-height: 30px;">【${twz.departname }】${twz.title}</a>
                <em><fmt:formatDate value="${twz.cjrq}" pattern="yyyy-MM-dd"/></em>
            </li>
        </c:forEach>
    </ul>
</body>
</html>